//
//  UILabel+TYZAdd.h
//  DrivieSchoolStudents
//
//  Created by TangBin on 2019/8/16.
//  Copyright © 2019 班文政. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (TYZAdd)

/**
 设置行间距
 
 @param text 内容
 @param lineSpacing 行间距
 */
- (void)setText:(NSString *)text lineSpacing:(CGFloat)lineSpacing;

/**
 初始化UILabel
 
 @param superView 父视图
 @param frame frame description
 @param font font
 @param block 设置属性
 @return return value description
 */
+ (UILabel *)createWithLabel:(UIView *)superView frame:(CGRect)frame font:(UIFont *)font propertiesBlock:(void(^ _Nullable)(UILabel *label))block;


/**
 *  改变行间距
 */
+ (void)changeLineSpaceForLabel:(UILabel *)label WithSpace:(float)space;

/**
 *  改变字间距
 */
+ (void)changeWordSpaceForLabel:(UILabel *)label WithSpace:(float)space;

/**
 *  改变行间距和字间距
 */
+ (void)changeSpaceForLabel:(UILabel *)label withLineSpace:(float)lineSpace WordSpace:(float)wordSpace;


@end

NS_ASSUME_NONNULL_END
